﻿using Microsoft.Phone.Controls;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace GameName1.Screens
{
            

    class BattleUI : GameComponent
    {
        

        Button button1;
        Button button2;

        public BattleUI(Game game)
            :base(game, new Vector2(0,0) )
        {
            /*button1 = new Button(Game, "animation_60x60",
                new Rectangle(buttonMargin, buttonMargin,
                buttonWidth, buttonHeight), 0);
            button2 = new Button(Game, "animation_60x60",
                new Rectangle(buttonMargin, 2 * buttonMargin + buttonHeight,
                buttonWidth, buttonHeight), 0);

            button1.OnClick += Button1OnClick;
            button2.OnClick += Button2OnClick;*/

        }

        /*private void Button1OnClick(object sender, EventArgs e)
        {
            Debug.WriteLine("button1 clicked");
            //robot1.LeftWheelSpeed += 1f;

            Deployment.Current.Dispatcher.BeginInvoke(() => (App.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/LoginPage.xaml", UriKind.Relative)));
        }

        private void Button2OnClick(object sender, EventArgs e)
        {
            Debug.WriteLine("button2 clicked");
            string code = "Create a 10 by 10 grid. Start at location 1,1. Move down 3. Move right 3. Move up 1. ";
            bool ret = programmer.ValidateCode(code);
            if (ret)
                Debug.WriteLine("Parsing ok");
            else
                Debug.WriteLine("Parsing failed");
            //robot1.LeftWheelSpeed -= 1f;
        }*/

    }
}
